package com.atguigu.springcloud.Factory.service.impl;

import com.atguigu.springcloud.Factory.service.Game;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: Fanw
 * @Date: 2021/5/16 21:49
 * @Description:
 */
@Slf4j
public class Checkers implements Game {
    private int moves = 0;
    private static final int MOVES = 3;

    @Override
    public boolean move() {
        log.info("checkers move" + moves);
        return ++moves != MOVES;
    }
}
